package com.xuan.modules.auth.controller;

import com.baomidou.mybatisplus.extension.api.R;
import com.xuan.commons.api.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author renzhengxuan
 * @date 2021/5/24
 */
@RestController
@RequestMapping("/auth")
public class AuthController {

    @GetMapping("/401")
    public Result noAuth(){
        Result result = new Result();
        result.setCode(401);
        result.setMsg("未授权,请联系管理员");
        result.setSuccess(false);
        return result;
    }
}
